Skip to content

Conversation

@zihan0822
Copy link
Contributor

@zihan0822 zihan0822 commented Sep 7, 2025

Fixes #15034

changelog: [unnecessary_safety_comment]: check for impl items as well

@rustbot
Copy link
Collaborator

rustbot commented Sep 7, 2025

r? @Alexendoo

rustbot has assigned @Alexendoo.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Sep 7, 2025
@github-actions
Copy link

github-actions bot commented Sep 7, 2025

Lintcheck changes for 2a73682

Lint Added Removed Changed
clippy::unnecessary_safety_comment 6 0 1

This comment will be updated if you push new changes

@zihan0822 zihan0822 force-pushed the safety-comment-on-impl-item branch from 0226e65 to 802c81b Compare September 7, 2025 22:13
@samueltardieu
Copy link
Member

By looking at the lintcheck result, it looks like you might have false positives when macros are involved.

@zihan0822
Copy link
Contributor Author

Previous implementation still lints internal macro. I followed that rule. Should we change that?

changelog: [`unnecessary_safety_comment`]: check for impl items as well

Signed-off-by: Zihan <[email protected]>
@zihan0822 zihan0822 force-pushed the safety-comment-on-impl-item branch from 802c81b to 2a73682 Compare September 8, 2025 16:20
@zihan0822
Copy link
Contributor Author

r? clippy

@rustbot rustbot assigned y21 and unassigned Alexendoo Sep 25, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 7, 2025

☔ The latest upstream changes (possibly f3c020c) made this pull request unmergeable. Please resolve the merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review Status: Awaiting review from the assignee but also interested parties

Projects

None yet

Development

Successfully merging this pull request may close these issues.

unnecessary_safety_comment inconsistency with wrong-style safety section

5 participants